/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package VO;

import FinancialEntity.Company;
import FinancialEntity.Quote;
import FinancialEntity.Stock;
import FinancialEntity.StockPK;
import java.util.List;
import javax.persistence.*;

/**
 *
 * @author Sebastian
 */
public class StockVO {
    
    protected StockPK stockPK;
    private String name;
    private String symbol;
    private String description;
    private Company company;
    private List<Quote> quoteList;

    public Company getCompany() {
        return company;
    }

    public void setCompany(Company company) {
        this.company = company;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Quote> getQuoteList() {
        return quoteList;
    }

    public void setQuoteList(List<Quote> quoteList) {
        this.quoteList = quoteList;
    }

    public StockPK getStockPK() {
        return stockPK;
    }

    public void setStockPK(StockPK stockPK) {
        this.stockPK = stockPK;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }
    
    public Stock toEntity(){
        Stock stock = new Stock();
        stock.setCompany(company);
        stock.setDescription(description);
        stock.setName(name);
        stock.setQuoteList(quoteList);
        stock.setStockPK(stockPK);
        stock.setSymbol(symbol);
        return stock;
    }

    
}
